<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>set_lut [HALCON算子参考手册]</title>
<style type="text/css">
      body {
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.body_main {
    margin-left: 35px;
    margin-right: 35px;
}

@media screen and (min-width:992px) {

    .body_main {
        margin-left: 10%;
        margin-right: 10%;
    }

    table.toctable {
        width: 80%
    }
}

@media screen and (min-width:1400px) {

    .body_main {
        margin-left: 15%;
        margin-right: 15%;
    }

    table.toctable {
        width: 70%
    }
}

body>div ul ul {
    margin-left: inherit;
}

a:link {
    color: #0044cc;
}

a:link,
a:visited {
    text-decoration: none;
}

a:link:hover,
a:visited:hover {
    text-decoration: underline;
}

th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
    color: #666666;
}

code {
    font-family: monospace,monospace;
}

h1 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

h2 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

hr {
    border: 0;
    border-top: solid 1px #f28d26;
}

.pre {
    display: block;
    padding-bottom: 1ex;
    font-family: monospace;
    white-space: pre;
}

pre {
    font-family: monospace, monospace;
    padding: 1ex;
    white-space: pre-wrap;
}

.toc {
    font-size: 80%;
    border-top: 1px dashed #f28d26;
    border-bottom: 1px dashed #f28d26;
    padding-top: 5px;
    padding-bottom: 5px;
}

.inv {
    margin: 0;
    border: 0;
    padding: 0;
}

.banner {
    color: #666666;
    padding-left: 1em;
}

.logo {
    background-color: white;
}

.keyboard {
    font-size: 80%;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #f28d26;
    background-color: #f3f3f3;
}

.warning {
    margin-top: 2ex;
    margin-bottom: 1ex;
    padding: 10px;
    text-align: center;
    border: 1px solid;
    color: #bb0000;
    background-color: #fff7f7
}

.imprint {
    margin-top: 1ex;
    font-size: 80%;
    color: #666666;
}

.imprinthead {
    font-weight: bolder;
    color: #666666;
}

.indexlink {
    text-align: right;
    padding-bottom: 5px;
}

.postscript {
    margin-top: 2ex;
    font-size: 80%;
    color: #666666
}

.evenrow {
    background-color: #e7e7ef;
    vertical-align: top;
}

.oddrow {
    background-color: #f7f7ff;
    vertical-align: top;
}

.headrow {
    background-color: #97979f;
    color: #ffffff;
    vertical-align: top;
}

.logorow {
    vertical-align: top;
}

.error {
    color: red;
}

.var {
    font-style: italic
}

.halconoperator {
    font-family: monospace, monospace;
}

span.operator {
    font-family: monospace, monospace;
}

span.procedure {
    font-family: monospace, monospace;
}

span.operation {
    font-family: monospace, monospace;
}

span.feature {
    font-family: Arial, Helvetica, Homerton, sans-serif;
}

ul {
    padding-left: 1.2em;
}

li.dot {
    list-style-type: square;
    color: #f28d26;
}

.breadcrumb {
    font-size: 80%;
    color: white;
    background-color: #062d64;
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 15px;
}

.webbar {
    font-size: 80%;
    background-color: #dddddd;
    margin-top: 0px;
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 0px;
    padding-top: 5px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 5px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px dashed #f28d26;
    font-size: 80%;
    color: #666666;
    padding-bottom: 8px;
}

.footer .socialmedia a {
    padding-left: 7px;
}

.socialmedia {
    padding-top: 10px;
}

.copyright {
    margin-top: 19px;
}

.breadcrumb a {
    color: #ffffff;
    border-bottom: 1px solid white;
}

.breadcrumb a:link:hover,
.breadcrumb a:visited:hover {
    text-decoration: none;
    border-bottom: none;
}

.heading {
    margin-top: 1ex;
    font-size: 110%;
    font-weight: bold;
    color: #666666;
}

.text {
    color: black;
}

.example {
    font-size: 80%;
    background-color: #f3f3f3;
    border: 1px dashed #666666;
    padding: 10px;
}

.displaymath {
    display: block;
    text-align: center;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.title {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
}

.signnote {
    font-family: Arial, Helvetica, Homerton, sans-serif;
    font-size: 80%;
    color: #666666;
    font-weight: lighter;
    font-style: italic
}

.par {
    margin-bottom: 1.5em;
}

.parhead {
    text-align: right;
}

.parname {
    float: left;
}

.pardesc {
    font-size: 85%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 2em;
}

.parcat {
    color: #666;
    font-weight: bold;
}

*[data-if=cpp],
*[data-if=c],
*[data-if=dotnet],
*[data-if=com],
*[data-if=python] {
    display: none;
}

.tabbar {
    text-align: right;
    border-bottom: 1px solid #f28d26;
    margin-bottom: 0.5em;
}

ul.tabs {
    padding-top: 3px;
    padding-bottom: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 80%
}

ul.tabs li {
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    margin-left: 8px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
}

ul.tabs li.active {
    border-left: 1px solid #f28d26;
    border-right: 1px solid #f28d26;
    border-top: 1px solid #f28d26;
    border-bottom: 1px solid #fff;
}

ul.tabs li.inactive {
    background-color: #eee;
}

ul.tabs li a {
    padding-left: 5px;
    padding-right: 5px;
    color: #666;
}

ul.tabs li a:link:hover {
    text-decoration: none;
}

ul.tabs li.inactive a {
    color: #666;
}

ul.tabs li.active a {
    color: black;
}

dl.generic dd {
    margin-bottom: 1em;
}

.pari {
    color: olive;
}

.paro {
    color: maroon;
}

.comment {
    font-size: 80%;
    color: green;
    white-space: nowrap;
}

table.grid {
    border-collapse: collapse;
}

table.grid td {
    padding: 5px;
    border: 1px solid;
}

table.layout {
    border: 0px;
}

table.layout td {
    padding: 5px;
}

table.table {
    border-collapse: collapse;
}

table.table td {
    padding: 5px;
    border-left: 0px;
    border-right: 0px;
}

table.table tr:last-child {
    border-bottom: 1px solid;
}

table.table th {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px;
    border-right: 0px;
}

.details_summary {
    cursor: pointer;
}

table.toctable {
    width: 100%;
}

table.toctable col:first-child {
    width: 20%;
}

table.toctable col:nth-last-child(2) {
    width: 8%;
}

table.altcolored tr:nth-child(even) {
    background-color: #f3f3f3;
}

    </style>
<!--OP_REF_STYLE_END-->
<script>
    <!--
var active_lang='hdevelop';function switchVisibility(obj,active_lang,new_lang)
{var display_style='inline';
for(var i=0;i<obj.length;i++)
{if(obj.item(i).getAttribute('data-if')==new_lang)
{obj.item(i).style.display=display_style;}
if(obj.item(i).getAttribute('data-if')==active_lang)
{obj.item(i).style.display='none';}}
return;}
function toggleLanguage(new_lang,initial)
{if(active_lang!=new_lang)
{var lis=document.getElementsByTagName('li');for(var i=0;i<lis.length;i++)
{if(lis.item(i).id=='syn-'+new_lang)
{lis.item(i).className='active';}
else
{lis.item(i).className='inactive';}}
var divs=document.getElementsByTagName('div');var spans=document.getElementsByTagName('span');switchVisibility(divs,active_lang,new_lang);switchVisibility(spans,active_lang,new_lang);if(!initial)
{setCookie("halcon_reference_language",new_lang,null,null);}
active_lang=new_lang;}
return;}
function setCookie(name,value,domain,exp_offset,path,secure)
{localStorage.setItem(name,value);}
function getCookie(name)
{return localStorage.getItem(name);}
function initialize()
{var qs=location.href.split('?')[1];var qs_lang_raw=location.href.split('interface=')[1];var qs_lang;if(qs_lang_raw)
{qs_lang=qs_lang_raw.split('#')[0];}
var cookie_lang=getCookie("halcon_reference_language");var new_lang;if((qs_lang=="hdevelop")||(qs_lang=="dotnet")||(qs_lang=="python")||(qs_lang=="cpp")||(qs_lang=="c"))
{new_lang=qs_lang;setCookie("halcon_reference_language",new_lang,null,null);}
else if((cookie_lang=="hdevelop")||(cookie_lang=="dotnet")||(cookie_lang=="python")||(cookie_lang=="cpp")||(cookie_lang=="c"))
{new_lang=cookie_lang;}
else
{new_lang="hdevelop";}
toggleLanguage(new_lang,1);return;}
-->

  </script>
</head>
<body onload="initialize();">
<div class="breadcrumb">
<br class="inv"><a href="index.html">目录</a> / <a href="toc_graphics.html">图形</a> / <a href="toc_graphics_lut.html">LUT</a><br class="inv">
</div>
<div class="body_main">
<div class="tabbar"><ul class="tabs">
<li id="syn-hdevelop" class="active"><a href="javascript:void(0);" onclick="toggleLanguage('hdevelop')" onfocus="blur()">HDevelop</a></li>
<li id="syn-dotnet" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('dotnet')" onfocus="blur()">.NET</a></li>
<li id="syn-python" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('python')" onfocus="blur()">Python</a></li>
<li id="syn-cpp" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('cpp')" onfocus="blur()">C++</a></li>
<li id="syn-c" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('c')" onfocus="blur()">C</a></li>
</ul></div>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<!--OP_REF_HEADER_END-->
<h1 id="sec_name">
<span data-if="hdevelop" style="display:inline;">set_lut</span><span data-if="c" style="display:none;">T_set_lut</span><span data-if="cpp" style="display:none;">SetLut</span><span data-if="dotnet" style="display:none;">SetLut</span><span data-if="python" style="display:none;">set_lut</span> (算子名称)</h1>
<h2>名称</h2>
<p><code><span data-if="hdevelop" style="display:inline;">set_lut</span><span data-if="c" style="display:none;">T_set_lut</span><span data-if="cpp" style="display:none;">SetLut</span><span data-if="dotnet" style="display:none;">SetLut</span><span data-if="python" style="display:none;">set_lut</span></code> — Set “look-up-table” (lut).</p>
<h2 id="sec_synopsis">参数签名</h2>
<div data-if="hdevelop" style="display:inline;">
<p>
<code><b>set_lut</b>( :  : <a href="#WindowHandle"><i>WindowHandle</i></a>, <a href="#LookUpTable"><i>LookUpTable</i></a> : )</code></p>
</div>
<div data-if="c" style="display:none;">
<p>
<code>Herror <b>T_set_lut</b>(const Htuple <a href="#WindowHandle"><i>WindowHandle</i></a>, const Htuple <a href="#LookUpTable"><i>LookUpTable</i></a>)</code></p>
</div>
<div data-if="cpp" style="display:none;">
<p>
<code>void <b>SetLut</b>(const HTuple&amp; <a href="#WindowHandle"><i>WindowHandle</i></a>, const HTuple&amp; <a href="#LookUpTable"><i>LookUpTable</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>SetLut</b>(const HTuple&amp; <a href="#LookUpTable"><i>LookUpTable</i></a>) const</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>SetLut</b>(const HString&amp; <a href="#LookUpTable"><i>LookUpTable</i></a>) const</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>SetLut</b>(const char* <a href="#LookUpTable"><i>LookUpTable</i></a>) const</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>SetLut</b>(const wchar_t* <a href="#LookUpTable"><i>LookUpTable</i></a>) const  <span class="signnote">
            (
            Windows only)
          </span></code></p>
</div>
<div data-if="com" style="display:none;"></div>
<div data-if="dotnet" style="display:none;">
<p>
<code>static void <a href="HOperatorSet.html">HOperatorSet</a>.<b>SetLut</b>(<a href="HTuple.html">HTuple</a> <a href="#WindowHandle"><i>windowHandle</i></a>, <a href="HTuple.html">HTuple</a> <a href="#LookUpTable"><i>lookUpTable</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>.<b>SetLut</b>(<a href="HTuple.html">HTuple</a> <a href="#LookUpTable"><i>lookUpTable</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>.<b>SetLut</b>(string <a href="#LookUpTable"><i>lookUpTable</i></a>)</code></p>
</div>
<div data-if="python" style="display:none;">
<p>
<code>def <b>set_lut</b>(<a href="#WindowHandle"><i>window_handle</i></a>: HHandle, <a href="#LookUpTable"><i>look_up_table</i></a>: MaybeSequence[Union[int, str]]) -&gt; None</code></p>
</div>
<h2 id="sec_description">描述</h2>
<p><code><span data-if="hdevelop" style="display:inline">set_lut</span><span data-if="c" style="display:none">set_lut</span><span data-if="cpp" style="display:none">SetLut</span><span data-if="com" style="display:none">SetLut</span><span data-if="dotnet" style="display:none">SetLut</span><span data-if="python" style="display:none">set_lut</span></code> sets look-up-table of the device (monitor) displaying
the output window. A look-up-table defines the transformation of a
“gray value” within an image into a gray value or color on the screen.
It describes the screen gray value/color as a combination of red, green and
blue for any image gray value (0..255) (so it is a 'table' to 'look up' the
screen gray value/color for each image gray value: look-up-table).
Transformation into screen-colors is performed in real-time at every
time the screen is displayed new (typically this happens about 60 - 70 times
per second). So it is possible to change the look-up-table to get a new look
of images or regions. Please remind that not all machines support changing
the look-up-table (e.g., monochrome resp. real color).
</p>
<p>Look-up-tables within HALCON (and on a machine that supports 256 colors)
are divided into three areas:
</p>
<dl class="generic">

<dt><b>S:</b></dt>
<dd><p>
       system area resp. user area,
</p></dd>

<dt><b>G:</b></dt>
<dd><p>
       graphic colors,
</p></dd>

<dt><b>B:</b></dt>
<dd><p>
       image data.
</p></dd>
</dl>
<p>Colors in S descend from applications that were active before starting
HALCON and should not get lost. Graphic colors in G are used for
operators such as <a href="disp_region.html"><code><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></code></a>, <a href="disp_circle.html"><code><span data-if="hdevelop" style="display:inline">disp_circle</span><span data-if="c" style="display:none">disp_circle</span><span data-if="cpp" style="display:none">DispCircle</span><span data-if="com" style="display:none">DispCircle</span><span data-if="dotnet" style="display:none">DispCircle</span><span data-if="python" style="display:none">disp_circle</span></code></a> etc.
and are set unique within all look-up-tables. An output in a graphic color
has always got the same (color-)look, even if different look-up-tables are
used. <a href="set_color.html"><code><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></code></a> and <a href="set_rgb.html"><code><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></code></a> set graphic colors.
Gray values resp. colors in B are used by <a href="disp_image.html"><code><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></code></a> to
display an image. They can change according to the current look-up-table.
There exist two exceptions to this concept:
</p>
<ul>
<li>
<p> <a href="set_gray.html"><code><span data-if="hdevelop" style="display:inline">set_gray</span><span data-if="c" style="display:none">set_gray</span><span data-if="cpp" style="display:none">SetGray</span><span data-if="com" style="display:none">SetGray</span><span data-if="dotnet" style="display:none">SetGray</span><span data-if="python" style="display:none">set_gray</span></code></a> allows setting of colors of the area B
for operators such as <a href="disp_region.html"><code><span data-if="hdevelop" style="display:inline">disp_region</span><span data-if="c" style="display:none">disp_region</span><span data-if="cpp" style="display:none">DispRegion</span><span data-if="com" style="display:none">DispRegion</span><span data-if="dotnet" style="display:none">DispRegion</span><span data-if="python" style="display:none">disp_region</span></code></a>,
</p>
</li>
</ul>
<p>For common monitors only one look-up-table can be loaded per screen.
Whereas <code><span data-if="hdevelop" style="display:inline">set_lut</span><span data-if="c" style="display:none">set_lut</span><span data-if="cpp" style="display:none">SetLut</span><span data-if="com" style="display:none">SetLut</span><span data-if="dotnet" style="display:none">SetLut</span><span data-if="python" style="display:none">set_lut</span></code> can be activated separately for each window.
There is the following solution for this problem:
It will always be
activated the look-up-table that is assigned to the
“active window” (a window is set into the state “active” by the
window manager).
</p>
<p>look-up-table can also be used with true-color displays. In this
case the look-up-table will be simulated in software.
This means, that the look-up-table will be used each time
an image is displayed.
</p>
<p><a href="query_lut.html"><code><span data-if="hdevelop" style="display:inline">query_lut</span><span data-if="c" style="display:none">query_lut</span><span data-if="cpp" style="display:none">QueryLut</span><span data-if="com" style="display:none">QueryLut</span><span data-if="dotnet" style="display:none">QueryLut</span><span data-if="python" style="display:none">query_lut</span></code></a> lists the names of all look-up-tables. They differ
from each other in the area used for gray values. Within this area the
following behavior is defined:
</p>
<dl class="generic">

<dt><b>Gray value tables (1-7 image levels)</b></dt>
<dd>
<p>

</p>
<div style="text-align:center"><table style="width:80%;margin-left:auto;margin-right:auto" class="table">
<col span="1" style="width:20%;">
<col span="1" style="width:60%;">
<tr>
<th style="text-align:left">
Value                     </th>
<th style="text-align:left">描述</th>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span></i>        </td>
<td style="text-align:left">Only the two basic colors
(generally black and white) are used.
</td>
</tr>
</table></div>

</dd>

<dt><b>Color tables (real color, static gray value steps)</b></dt>
<dd>
<p>

</p>
<div style="text-align:center"><table style="width:80%;margin-left:auto;margin-right:auto" class="table">
<col span="1" style="width:20%;">
<col span="1" style="width:60%;">
<tr>
<th style="text-align:left">
Value                     </th>
<th style="text-align:left">描述</th>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span></i>        </td>
<td style="text-align:left">Table proposed by the hardware.
</td>
</tr>
</table></div>

</dd>

<dt><b>Gray value tables (256 colors)</b></dt>
<dd>
<p>

</p>
<div style="text-align:center"><table style="width:80%;margin-left:auto;margin-right:auto" class="table">
<col span="1" style="width:20%;">
<col span="1" style="width:60%;">
<tr>
<th style="text-align:left">
Value                     </th>
<th style="text-align:left">描述</th>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span></i>        </td>
<td style="text-align:left">As <i><span data-if="hdevelop" style="display:inline">'linear'</span><span data-if="c" style="display:none">"linear"</span><span data-if="cpp" style="display:none">"linear"</span><span data-if="com" style="display:none">"linear"</span><span data-if="dotnet" style="display:none">"linear"</span><span data-if="python" style="display:none">"linear"</span></i>.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'linear'</span><span data-if="c" style="display:none">"linear"</span><span data-if="cpp" style="display:none">"linear"</span><span data-if="com" style="display:none">"linear"</span><span data-if="dotnet" style="display:none">"linear"</span><span data-if="python" style="display:none">"linear"</span></i>         </td>
<td style="text-align:left">Linear increasing of gray values from 0 (black)
to 255 (white).</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'inverse'</span><span data-if="c" style="display:none">"inverse"</span><span data-if="cpp" style="display:none">"inverse"</span><span data-if="com" style="display:none">"inverse"</span><span data-if="dotnet" style="display:none">"inverse"</span><span data-if="python" style="display:none">"inverse"</span></i>        </td>
<td style="text-align:left">Inverse function of <i><span data-if="hdevelop" style="display:inline">'linear'</span><span data-if="c" style="display:none">"linear"</span><span data-if="cpp" style="display:none">"linear"</span><span data-if="com" style="display:none">"linear"</span><span data-if="dotnet" style="display:none">"linear"</span><span data-if="python" style="display:none">"linear"</span></i>.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'sqr'</span><span data-if="c" style="display:none">"sqr"</span><span data-if="cpp" style="display:none">"sqr"</span><span data-if="com" style="display:none">"sqr"</span><span data-if="dotnet" style="display:none">"sqr"</span><span data-if="python" style="display:none">"sqr"</span></i>            </td>
<td style="text-align:left">Gray values increase according to square
function.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'inv_sqr'</span><span data-if="c" style="display:none">"inv_sqr"</span><span data-if="cpp" style="display:none">"inv_sqr"</span><span data-if="com" style="display:none">"inv_sqr"</span><span data-if="dotnet" style="display:none">"inv_sqr"</span><span data-if="python" style="display:none">"inv_sqr"</span></i>        </td>
<td style="text-align:left">Inverse function of <i><span data-if="hdevelop" style="display:inline">'sqr'</span><span data-if="c" style="display:none">"sqr"</span><span data-if="cpp" style="display:none">"sqr"</span><span data-if="com" style="display:none">"sqr"</span><span data-if="dotnet" style="display:none">"sqr"</span><span data-if="python" style="display:none">"sqr"</span></i>.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'cube'</span><span data-if="c" style="display:none">"cube"</span><span data-if="cpp" style="display:none">"cube"</span><span data-if="com" style="display:none">"cube"</span><span data-if="dotnet" style="display:none">"cube"</span><span data-if="python" style="display:none">"cube"</span></i>           </td>
<td style="text-align:left">Gray values increase according to cubic
function.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'inv_cube'</span><span data-if="c" style="display:none">"inv_cube"</span><span data-if="cpp" style="display:none">"inv_cube"</span><span data-if="com" style="display:none">"inv_cube"</span><span data-if="dotnet" style="display:none">"inv_cube"</span><span data-if="python" style="display:none">"inv_cube"</span></i>       </td>
<td style="text-align:left">Inverse function of <i><span data-if="hdevelop" style="display:inline">'cube'</span><span data-if="c" style="display:none">"cube"</span><span data-if="cpp" style="display:none">"cube"</span><span data-if="com" style="display:none">"cube"</span><span data-if="dotnet" style="display:none">"cube"</span><span data-if="python" style="display:none">"cube"</span></i>.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'sqrt'</span><span data-if="c" style="display:none">"sqrt"</span><span data-if="cpp" style="display:none">"sqrt"</span><span data-if="com" style="display:none">"sqrt"</span><span data-if="dotnet" style="display:none">"sqrt"</span><span data-if="python" style="display:none">"sqrt"</span></i>           </td>
<td style="text-align:left">Gray values increase according to square-root
function.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'inv_sqrt'</span><span data-if="c" style="display:none">"inv_sqrt"</span><span data-if="cpp" style="display:none">"inv_sqrt"</span><span data-if="com" style="display:none">"inv_sqrt"</span><span data-if="dotnet" style="display:none">"inv_sqrt"</span><span data-if="python" style="display:none">"inv_sqrt"</span></i>       </td>
<td style="text-align:left">Inverse Function of <i><span data-if="hdevelop" style="display:inline">'sqrt'</span><span data-if="c" style="display:none">"sqrt"</span><span data-if="cpp" style="display:none">"sqrt"</span><span data-if="com" style="display:none">"sqrt"</span><span data-if="dotnet" style="display:none">"sqrt"</span><span data-if="python" style="display:none">"sqrt"</span></i>.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'cubic_root'</span><span data-if="c" style="display:none">"cubic_root"</span><span data-if="cpp" style="display:none">"cubic_root"</span><span data-if="com" style="display:none">"cubic_root"</span><span data-if="dotnet" style="display:none">"cubic_root"</span><span data-if="python" style="display:none">"cubic_root"</span></i>     </td>
<td style="text-align:left">Gray values increase according to cubic-root
function.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'inv_cubic_root'</span><span data-if="c" style="display:none">"inv_cubic_root"</span><span data-if="cpp" style="display:none">"inv_cubic_root"</span><span data-if="com" style="display:none">"inv_cubic_root"</span><span data-if="dotnet" style="display:none">"inv_cubic_root"</span><span data-if="python" style="display:none">"inv_cubic_root"</span></i>  </td>
<td style="text-align:left">Inverse Function of <i><span data-if="hdevelop" style="display:inline">'cubic_root'</span><span data-if="c" style="display:none">"cubic_root"</span><span data-if="cpp" style="display:none">"cubic_root"</span><span data-if="com" style="display:none">"cubic_root"</span><span data-if="dotnet" style="display:none">"cubic_root"</span><span data-if="python" style="display:none">"cubic_root"</span></i>.
</td>
</tr>
</table></div>

</dd>

<dt><b>Color tables (256 colors)</b></dt>
<dd>
<p>

</p>
<div style="text-align:center"><table style="width:80%;margin-left:auto;margin-right:auto" class="table">
<col span="1" style="width:20%;">
<col span="1" style="width:60%;">
<tr>
<th style="text-align:left">
Value                     </th>
<th style="text-align:left">描述</th>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'color1'</span><span data-if="c" style="display:none">"color1"</span><span data-if="cpp" style="display:none">"color1"</span><span data-if="com" style="display:none">"color1"</span><span data-if="dotnet" style="display:none">"color1"</span><span data-if="python" style="display:none">"color1"</span></i>         </td>
<td style="text-align:left">Linear transition from red via green to blue.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'color2'</span><span data-if="c" style="display:none">"color2"</span><span data-if="cpp" style="display:none">"color2"</span><span data-if="com" style="display:none">"color2"</span><span data-if="dotnet" style="display:none">"color2"</span><span data-if="python" style="display:none">"color2"</span></i>         </td>
<td style="text-align:left">Smooth transition from yellow via red, blue
to green.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'color3'</span><span data-if="c" style="display:none">"color3"</span><span data-if="cpp" style="display:none">"color3"</span><span data-if="com" style="display:none">"color3"</span><span data-if="dotnet" style="display:none">"color3"</span><span data-if="python" style="display:none">"color3"</span></i>         </td>
<td style="text-align:left">Smooth transition from yellow via red, blue,
green, red to blue.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'color4'</span><span data-if="c" style="display:none">"color4"</span><span data-if="cpp" style="display:none">"color4"</span><span data-if="com" style="display:none">"color4"</span><span data-if="dotnet" style="display:none">"color4"</span><span data-if="python" style="display:none">"color4"</span></i>         </td>
<td style="text-align:left">Smooth transition from yellow via red to
blue.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'three'</span><span data-if="c" style="display:none">"three"</span><span data-if="cpp" style="display:none">"three"</span><span data-if="com" style="display:none">"three"</span><span data-if="dotnet" style="display:none">"three"</span><span data-if="python" style="display:none">"three"</span></i>          </td>
<td style="text-align:left">Displaying the three colors red, green and
blue.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'six'</span><span data-if="c" style="display:none">"six"</span><span data-if="cpp" style="display:none">"six"</span><span data-if="com" style="display:none">"six"</span><span data-if="dotnet" style="display:none">"six"</span><span data-if="python" style="display:none">"six"</span></i>            </td>
<td style="text-align:left">Displaying the six basic colors yellow, red,
magenta, blue, cyan and green.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'twelve'</span><span data-if="c" style="display:none">"twelve"</span><span data-if="cpp" style="display:none">"twelve"</span><span data-if="com" style="display:none">"twelve"</span><span data-if="dotnet" style="display:none">"twelve"</span><span data-if="python" style="display:none">"twelve"</span></i>         </td>
<td style="text-align:left">Displaying 12 colors.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'twenty_four'</span><span data-if="c" style="display:none">"twenty_four"</span><span data-if="cpp" style="display:none">"twenty_four"</span><span data-if="com" style="display:none">"twenty_four"</span><span data-if="dotnet" style="display:none">"twenty_four"</span><span data-if="python" style="display:none">"twenty_four"</span></i>    </td>
<td style="text-align:left">Displaying 24 colors.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'rainbow'</span><span data-if="c" style="display:none">"rainbow"</span><span data-if="cpp" style="display:none">"rainbow"</span><span data-if="com" style="display:none">"rainbow"</span><span data-if="dotnet" style="display:none">"rainbow"</span><span data-if="python" style="display:none">"rainbow"</span></i>        </td>
<td style="text-align:left">Displaying the spectral colors from red via
green to blue.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'temperature'</span><span data-if="c" style="display:none">"temperature"</span><span data-if="cpp" style="display:none">"temperature"</span><span data-if="com" style="display:none">"temperature"</span><span data-if="dotnet" style="display:none">"temperature"</span><span data-if="python" style="display:none">"temperature"</span></i>    </td>
<td style="text-align:left">Temperature table from black via red, yellow
to white.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'change1'</span><span data-if="c" style="display:none">"change1"</span><span data-if="cpp" style="display:none">"change1"</span><span data-if="com" style="display:none">"change1"</span><span data-if="dotnet" style="display:none">"change1"</span><span data-if="python" style="display:none">"change1"</span></i>        </td>
<td style="text-align:left">Color changes after every pixel within the
table alternating the six basic colors.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'change2'</span><span data-if="c" style="display:none">"change2"</span><span data-if="cpp" style="display:none">"change2"</span><span data-if="com" style="display:none">"change2"</span><span data-if="dotnet" style="display:none">"change2"</span><span data-if="python" style="display:none">"change2"</span></i>        </td>
<td style="text-align:left">Fivefold color changes from green via red
to blue.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'change3'</span><span data-if="c" style="display:none">"change3"</span><span data-if="cpp" style="display:none">"change3"</span><span data-if="com" style="display:none">"change3"</span><span data-if="dotnet" style="display:none">"change3"</span><span data-if="python" style="display:none">"change3"</span></i>        </td>
<td style="text-align:left">Threefold color changes from green via red
to blue.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'jet'</span><span data-if="c" style="display:none">"jet"</span><span data-if="cpp" style="display:none">"jet"</span><span data-if="com" style="display:none">"jet"</span><span data-if="dotnet" style="display:none">"jet"</span><span data-if="python" style="display:none">"jet"</span></i>            </td>
<td style="text-align:left">Smooth transition from blue via green, yellow
to red.</td>
</tr>
<tr>
<td style="text-align:left">
<i><span data-if="hdevelop" style="display:inline">'inverse_jet'</span><span data-if="c" style="display:none">"inverse_jet"</span><span data-if="cpp" style="display:none">"inverse_jet"</span><span data-if="com" style="display:none">"inverse_jet"</span><span data-if="dotnet" style="display:none">"inverse_jet"</span><span data-if="python" style="display:none">"inverse_jet"</span></i>    </td>
<td style="text-align:left">Smooth transition from red via yellow, green
to blue.
</td>
</tr>
</table></div>

</dd>
</dl>
<p>A look-up-table can be read from a file. Every line of such a file must
contain three numbers in the range of 0 to 255, with the first number
describing the amount of red, the second the amount of green and the third
the amount of blue of the represented display color. The number of lines
can vary. The first line contains information for the first gray value and
the last line for the last value. If there are less lines than gray values,
the available information values are distributed over the whole interval.
If there are more lines than gray values, a  number of (uniformly distributed)
lines is ignored.
The file-name must conform to “<code>LookUpTable.lut</code>”.
Within the parameter the name is specified without file extension.
HALCON will search for the file in the current directory and after that in
a specified directory ( see <a href="set_system.html"><code><span data-if="hdevelop" style="display:inline">set_system(::'lut_dir',&lt;Pfad&gt;:)</span><span data-if="c" style="display:none">set_system("lut_dir",&lt;Pfad&gt;)</span><span data-if="cpp" style="display:none">SetSystem("lut_dir",&lt;Pfad&gt;)</span><span data-if="com" style="display:none">SetSystem("lut_dir",&lt;Pfad&gt;)</span><span data-if="dotnet" style="display:none">SetSystem("lut_dir",&lt;Pfad&gt;)</span><span data-if="python" style="display:none">set_system("lut_dir",&lt;Pfad&gt;)</span></code></a> ).
It is also possible to call <code><span data-if="hdevelop" style="display:inline">set_lut</span><span data-if="c" style="display:none">set_lut</span><span data-if="cpp" style="display:none">SetLut</span><span data-if="com" style="display:none">SetLut</span><span data-if="dotnet" style="display:none">SetLut</span><span data-if="python" style="display:none">set_lut</span></code> with a tuple of RGB-Values.
These will be set directly. The number of parameter values must conform to
the number of pixels currently used within the look-up-table.</p>
<h2 id="sec_attention">注意</h2>
<p> <code><span data-if="hdevelop" style="display:inline">set_lut</span><span data-if="c" style="display:none">set_lut</span><span data-if="cpp" style="display:none">SetLut</span><span data-if="com" style="display:none">SetLut</span><span data-if="dotnet" style="display:none">SetLut</span><span data-if="python" style="display:none">set_lut</span></code> can only be used with monitors supporting
256 gray levels/colors.</p>
<h2 id="sec_execution">运行信息</h2>
<ul>
  <li>多线程类型:可重入(与非独占操作符并行运行)。</li>
<li>多线程作用域:全局(可以从任何线程调用)。</li>
  <li>未经并行化处理。</li>
</ul>
<h2 id="sec_parameters">参数表</h2>
  <div class="par">
<div class="parhead">
<span id="WindowHandle" class="parname"><b><code><span data-if="hdevelop" style="display:inline">WindowHandle</span><span data-if="c" style="display:none">WindowHandle</span><span data-if="cpp" style="display:none">WindowHandle</span><span data-if="com" style="display:none">WindowHandle</span><span data-if="dotnet" style="display:none">windowHandle</span><span data-if="python" style="display:none">window_handle</span></code></b> (input_control)  </span><span>window <code>→</code> <span data-if="dotnet" style="display:none"><a href="HWindow.html">HWindow</a>, </span><span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">HHandle</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (handle)</span><span data-if="dotnet" style="display:none"> (<i>IntPtr</i>)</span><span data-if="cpp" style="display:none"> (<i>HHandle</i>)</span><span data-if="c" style="display:none"> (<i>handle</i>)</span></span>
</div>
<p class="pardesc">Window handle.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="LookUpTable" class="parname"><b><code><span data-if="hdevelop" style="display:inline">LookUpTable</span><span data-if="c" style="display:none">LookUpTable</span><span data-if="cpp" style="display:none">LookUpTable</span><span data-if="com" style="display:none">LookUpTable</span><span data-if="dotnet" style="display:none">lookUpTable</span><span data-if="python" style="display:none">look_up_table</span></code></b> (input_control)  </span><span>filename.read(-array) <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">MaybeSequence[Union[int, str]]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (string / </span><span data-if="hdevelop" style="display:inline">integer)</span><span data-if="dotnet" style="display:none"> (<i>string</i> / </span><span data-if="dotnet" style="display:none">int / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>HString</i> / </span><span data-if="cpp" style="display:none">Hlong)</span><span data-if="c" style="display:none"> (<i>char*</i> / </span><span data-if="c" style="display:none">Hlong)</span></span>
</div>
<p class="pardesc">Name of look-up-table, values of look-up-table (RGB)
or file name.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>
    <span data-if="hdevelop" style="display:inline">'default'</span>
    <span data-if="c" style="display:none">"default"</span>
    <span data-if="cpp" style="display:none">"default"</span>
    <span data-if="com" style="display:none">"default"</span>
    <span data-if="dotnet" style="display:none">"default"</span>
    <span data-if="python" style="display:none">"default"</span>
</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span><span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span>, <span data-if="hdevelop" style="display:inline">'linear'</span><span data-if="c" style="display:none">"linear"</span><span data-if="cpp" style="display:none">"linear"</span><span data-if="com" style="display:none">"linear"</span><span data-if="dotnet" style="display:none">"linear"</span><span data-if="python" style="display:none">"linear"</span>, <span data-if="hdevelop" style="display:inline">'inverse'</span><span data-if="c" style="display:none">"inverse"</span><span data-if="cpp" style="display:none">"inverse"</span><span data-if="com" style="display:none">"inverse"</span><span data-if="dotnet" style="display:none">"inverse"</span><span data-if="python" style="display:none">"inverse"</span>, <span data-if="hdevelop" style="display:inline">'sqr'</span><span data-if="c" style="display:none">"sqr"</span><span data-if="cpp" style="display:none">"sqr"</span><span data-if="com" style="display:none">"sqr"</span><span data-if="dotnet" style="display:none">"sqr"</span><span data-if="python" style="display:none">"sqr"</span>, <span data-if="hdevelop" style="display:inline">'inv_sqr'</span><span data-if="c" style="display:none">"inv_sqr"</span><span data-if="cpp" style="display:none">"inv_sqr"</span><span data-if="com" style="display:none">"inv_sqr"</span><span data-if="dotnet" style="display:none">"inv_sqr"</span><span data-if="python" style="display:none">"inv_sqr"</span>, <span data-if="hdevelop" style="display:inline">'cube'</span><span data-if="c" style="display:none">"cube"</span><span data-if="cpp" style="display:none">"cube"</span><span data-if="com" style="display:none">"cube"</span><span data-if="dotnet" style="display:none">"cube"</span><span data-if="python" style="display:none">"cube"</span>, <span data-if="hdevelop" style="display:inline">'inv_cube'</span><span data-if="c" style="display:none">"inv_cube"</span><span data-if="cpp" style="display:none">"inv_cube"</span><span data-if="com" style="display:none">"inv_cube"</span><span data-if="dotnet" style="display:none">"inv_cube"</span><span data-if="python" style="display:none">"inv_cube"</span>, <span data-if="hdevelop" style="display:inline">'sqrt'</span><span data-if="c" style="display:none">"sqrt"</span><span data-if="cpp" style="display:none">"sqrt"</span><span data-if="com" style="display:none">"sqrt"</span><span data-if="dotnet" style="display:none">"sqrt"</span><span data-if="python" style="display:none">"sqrt"</span>, <span data-if="hdevelop" style="display:inline">'inv_sqrt'</span><span data-if="c" style="display:none">"inv_sqrt"</span><span data-if="cpp" style="display:none">"inv_sqrt"</span><span data-if="com" style="display:none">"inv_sqrt"</span><span data-if="dotnet" style="display:none">"inv_sqrt"</span><span data-if="python" style="display:none">"inv_sqrt"</span>, <span data-if="hdevelop" style="display:inline">'cubic_root'</span><span data-if="c" style="display:none">"cubic_root"</span><span data-if="cpp" style="display:none">"cubic_root"</span><span data-if="com" style="display:none">"cubic_root"</span><span data-if="dotnet" style="display:none">"cubic_root"</span><span data-if="python" style="display:none">"cubic_root"</span>, <span data-if="hdevelop" style="display:inline">'inv_cubic_root'</span><span data-if="c" style="display:none">"inv_cubic_root"</span><span data-if="cpp" style="display:none">"inv_cubic_root"</span><span data-if="com" style="display:none">"inv_cubic_root"</span><span data-if="dotnet" style="display:none">"inv_cubic_root"</span><span data-if="python" style="display:none">"inv_cubic_root"</span>, <span data-if="hdevelop" style="display:inline">'color1'</span><span data-if="c" style="display:none">"color1"</span><span data-if="cpp" style="display:none">"color1"</span><span data-if="com" style="display:none">"color1"</span><span data-if="dotnet" style="display:none">"color1"</span><span data-if="python" style="display:none">"color1"</span>, <span data-if="hdevelop" style="display:inline">'color2'</span><span data-if="c" style="display:none">"color2"</span><span data-if="cpp" style="display:none">"color2"</span><span data-if="com" style="display:none">"color2"</span><span data-if="dotnet" style="display:none">"color2"</span><span data-if="python" style="display:none">"color2"</span>, <span data-if="hdevelop" style="display:inline">'color3'</span><span data-if="c" style="display:none">"color3"</span><span data-if="cpp" style="display:none">"color3"</span><span data-if="com" style="display:none">"color3"</span><span data-if="dotnet" style="display:none">"color3"</span><span data-if="python" style="display:none">"color3"</span>, <span data-if="hdevelop" style="display:inline">'color4'</span><span data-if="c" style="display:none">"color4"</span><span data-if="cpp" style="display:none">"color4"</span><span data-if="com" style="display:none">"color4"</span><span data-if="dotnet" style="display:none">"color4"</span><span data-if="python" style="display:none">"color4"</span>, <span data-if="hdevelop" style="display:inline">'three'</span><span data-if="c" style="display:none">"three"</span><span data-if="cpp" style="display:none">"three"</span><span data-if="com" style="display:none">"three"</span><span data-if="dotnet" style="display:none">"three"</span><span data-if="python" style="display:none">"three"</span>, <span data-if="hdevelop" style="display:inline">'six'</span><span data-if="c" style="display:none">"six"</span><span data-if="cpp" style="display:none">"six"</span><span data-if="com" style="display:none">"six"</span><span data-if="dotnet" style="display:none">"six"</span><span data-if="python" style="display:none">"six"</span>, <span data-if="hdevelop" style="display:inline">'twelve'</span><span data-if="c" style="display:none">"twelve"</span><span data-if="cpp" style="display:none">"twelve"</span><span data-if="com" style="display:none">"twelve"</span><span data-if="dotnet" style="display:none">"twelve"</span><span data-if="python" style="display:none">"twelve"</span>, <span data-if="hdevelop" style="display:inline">'twenty_four'</span><span data-if="c" style="display:none">"twenty_four"</span><span data-if="cpp" style="display:none">"twenty_four"</span><span data-if="com" style="display:none">"twenty_four"</span><span data-if="dotnet" style="display:none">"twenty_four"</span><span data-if="python" style="display:none">"twenty_four"</span>, <span data-if="hdevelop" style="display:inline">'rainbow'</span><span data-if="c" style="display:none">"rainbow"</span><span data-if="cpp" style="display:none">"rainbow"</span><span data-if="com" style="display:none">"rainbow"</span><span data-if="dotnet" style="display:none">"rainbow"</span><span data-if="python" style="display:none">"rainbow"</span>, <span data-if="hdevelop" style="display:inline">'temperature'</span><span data-if="c" style="display:none">"temperature"</span><span data-if="cpp" style="display:none">"temperature"</span><span data-if="com" style="display:none">"temperature"</span><span data-if="dotnet" style="display:none">"temperature"</span><span data-if="python" style="display:none">"temperature"</span>, <span data-if="hdevelop" style="display:inline">'cyclic_gray'</span><span data-if="c" style="display:none">"cyclic_gray"</span><span data-if="cpp" style="display:none">"cyclic_gray"</span><span data-if="com" style="display:none">"cyclic_gray"</span><span data-if="dotnet" style="display:none">"cyclic_gray"</span><span data-if="python" style="display:none">"cyclic_gray"</span>, <span data-if="hdevelop" style="display:inline">'cyclic_temperature'</span><span data-if="c" style="display:none">"cyclic_temperature"</span><span data-if="cpp" style="display:none">"cyclic_temperature"</span><span data-if="com" style="display:none">"cyclic_temperature"</span><span data-if="dotnet" style="display:none">"cyclic_temperature"</span><span data-if="python" style="display:none">"cyclic_temperature"</span>, <span data-if="hdevelop" style="display:inline">'hsi'</span><span data-if="c" style="display:none">"hsi"</span><span data-if="cpp" style="display:none">"hsi"</span><span data-if="com" style="display:none">"hsi"</span><span data-if="dotnet" style="display:none">"hsi"</span><span data-if="python" style="display:none">"hsi"</span>, <span data-if="hdevelop" style="display:inline">'change1'</span><span data-if="c" style="display:none">"change1"</span><span data-if="cpp" style="display:none">"change1"</span><span data-if="com" style="display:none">"change1"</span><span data-if="dotnet" style="display:none">"change1"</span><span data-if="python" style="display:none">"change1"</span>, <span data-if="hdevelop" style="display:inline">'change2'</span><span data-if="c" style="display:none">"change2"</span><span data-if="cpp" style="display:none">"change2"</span><span data-if="com" style="display:none">"change2"</span><span data-if="dotnet" style="display:none">"change2"</span><span data-if="python" style="display:none">"change2"</span>, <span data-if="hdevelop" style="display:inline">'change3'</span><span data-if="c" style="display:none">"change3"</span><span data-if="cpp" style="display:none">"change3"</span><span data-if="com" style="display:none">"change3"</span><span data-if="dotnet" style="display:none">"change3"</span><span data-if="python" style="display:none">"change3"</span>, <span data-if="hdevelop" style="display:inline">'jet'</span><span data-if="c" style="display:none">"jet"</span><span data-if="cpp" style="display:none">"jet"</span><span data-if="com" style="display:none">"jet"</span><span data-if="dotnet" style="display:none">"jet"</span><span data-if="python" style="display:none">"jet"</span>, <span data-if="hdevelop" style="display:inline">'jet_inverse'</span><span data-if="c" style="display:none">"jet_inverse"</span><span data-if="cpp" style="display:none">"jet_inverse"</span><span data-if="com" style="display:none">"jet_inverse"</span><span data-if="dotnet" style="display:none">"jet_inverse"</span><span data-if="python" style="display:none">"jet_inverse"</span></p>
<p class="pardesc"><span class="parcat">File extension:
          </span>.<code>lut</code></p>
</div>
<div data-if="hdevelop" style="display:inline">
<h2 id="sec_example_hdevelop">例程 (HDevelop)</h2>
<pre class="example">
read_image(Image,'monkey')
query_lut(WindowHandle,LUTs)
for i := 0 to |LUTs|-1 by 1
  set_lut(WindowHandle,LUTs[i])
  fwrite_string(FileHandle, ['current table ',LUTs[i]])
  fnew_line(FileHandle)
  get_mbutton(WindowHandle,_,_,_)
endfor
</pre>
</div>
<div data-if="c" style="display:none">
<h2 id="sec_example_c">例程 (C)</h2>
<pre class="example">
Htuple WindowHandleTuple, LUTs;
read_image(&amp;Image,"monkey");
create_tuple(&amp;WindowHandleTuple,1);
set_i(WindowHandleTuple,WindowHandle,0);
T_query_lut(WindowHandleTuple,&amp;LUTs) \:
for(i=0; i&lt;length_tuple(LUTs)-1; i++)
{
  set_lut(WindowHandle,get_s(LUTs,i));
  fwrite_string(FileHandle,"current table: ");
  fwrite_string(FileHandle,get_s(LUTs,i));
  fnew_line(FileHandle);
  get_mbutton(WindowHandle,NULL,NULL,NULL);
};
</pre>
</div>
<div data-if="cpp" style="display:none">
<h2 id="sec_example_cpp">例程 (HDevelop)</h2>
<pre class="example">
read_image(Image,'monkey')
query_lut(WindowHandle,LUTs)
for i := 0 to |LUTs|-1 by 1
  set_lut(WindowHandle,LUTs[i])
  fwrite_string(FileHandle, ['current table ',LUTs[i]])
  fnew_line(FileHandle)
  get_mbutton(WindowHandle,_,_,_)
endfor
</pre>
</div>
<div data-if="com" style="display:none">
<h2 id="sec_example_com">例程 (HDevelop)</h2>
<pre class="example">
read_image(Image,'monkey')
query_lut(WindowHandle,LUTs)
for i := 0 to |LUTs|-1 by 1
  set_lut(WindowHandle,LUTs[i])
  fwrite_string(FileHandle, ['current table ',LUTs[i]])
  fnew_line(FileHandle)
  get_mbutton(WindowHandle,_,_,_)
endfor
</pre>
</div>
<div data-if="dotnet" style="display:none">
<h2 id="sec_example_dotnet">例程 (HDevelop)</h2>
<pre class="example">
read_image(Image,'monkey')
query_lut(WindowHandle,LUTs)
for i := 0 to |LUTs|-1 by 1
  set_lut(WindowHandle,LUTs[i])
  fwrite_string(FileHandle, ['current table ',LUTs[i]])
  fnew_line(FileHandle)
  get_mbutton(WindowHandle,_,_,_)
endfor
</pre>
</div>
<h2 id="sec_result">结果</h2>
<p><code><span data-if="hdevelop" style="display:inline">set_lut</span><span data-if="c" style="display:none">set_lut</span><span data-if="cpp" style="display:none">SetLut</span><span data-if="com" style="display:none">SetLut</span><span data-if="dotnet" style="display:none">SetLut</span><span data-if="python" style="display:none">set_lut</span></code> returns <TT>2</TT> (
      <TT>H_MSG_TRUE</TT>)
     if the hardware supports a look-up-table
and the parameter is correct. Otherwise an exception is raised.</p>
<h2 id="sec_predecessors">可能的前置算子</h2>
<p>
<code><a href="query_lut.html"><span data-if="hdevelop" style="display:inline">query_lut</span><span data-if="c" style="display:none">query_lut</span><span data-if="cpp" style="display:none">QueryLut</span><span data-if="com" style="display:none">QueryLut</span><span data-if="dotnet" style="display:none">QueryLut</span><span data-if="python" style="display:none">query_lut</span></a></code>, 
<code><a href="get_lut.html"><span data-if="hdevelop" style="display:inline">get_lut</span><span data-if="c" style="display:none">get_lut</span><span data-if="cpp" style="display:none">GetLut</span><span data-if="com" style="display:none">GetLut</span><span data-if="dotnet" style="display:none">GetLut</span><span data-if="python" style="display:none">get_lut</span></a></code>
</p>
<h2 id="sec_see">参考其它</h2>
<p>
<code><a href="get_lut.html"><span data-if="hdevelop" style="display:inline">get_lut</span><span data-if="c" style="display:none">get_lut</span><span data-if="cpp" style="display:none">GetLut</span><span data-if="com" style="display:none">GetLut</span><span data-if="dotnet" style="display:none">GetLut</span><span data-if="python" style="display:none">get_lut</span></a></code>, 
<code><a href="query_lut.html"><span data-if="hdevelop" style="display:inline">query_lut</span><span data-if="c" style="display:none">query_lut</span><span data-if="cpp" style="display:none">QueryLut</span><span data-if="com" style="display:none">QueryLut</span><span data-if="dotnet" style="display:none">QueryLut</span><span data-if="python" style="display:none">query_lut</span></a></code>, 
<code><a href="set_color.html"><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></a></code>, 
<code><a href="set_rgb.html"><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></a></code>, 
<code><a href="set_hsi.html"><span data-if="hdevelop" style="display:inline">set_hsi</span><span data-if="c" style="display:none">set_hsi</span><span data-if="cpp" style="display:none">SetHsi</span><span data-if="com" style="display:none">SetHsi</span><span data-if="dotnet" style="display:none">SetHsi</span><span data-if="python" style="display:none">set_hsi</span></a></code>, 
<code><a href="write_lut.html"><span data-if="hdevelop" style="display:inline">write_lut</span><span data-if="c" style="display:none">write_lut</span><span data-if="cpp" style="display:none">WriteLut</span><span data-if="com" style="display:none">WriteLut</span><span data-if="dotnet" style="display:none">WriteLut</span><span data-if="python" style="display:none">write_lut</span></a></code>
</p>
<h2 id="sec_module">模块</h2>
<p>
Foundation</p>
<!--OP_REF_FOOTER_START-->
<hr>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<div class="footer">
<div class="copyright">HALCON算子参考手册 Copyright © 2015-2023 51Halcon</div>
</div>
</div>
</body>
</html>
